package com.jiaquyun.jcps.entity

import com.blankj.utilcode.util.GsonUtils
import com.jiaquyun.jcps.app.BaseApplication
import com.lemlin.network.HttpServiceData

open class SocketResponse(
    val data: Any
) : HttpServiceData() {
    val controller: String? = null
    val action: String? = null

    fun toStringData(): String {
        return GsonUtils.toJson(data)
    }
}

data class SocketRequest(
    val controller: String = "Events",
    val action: String,
    val lat: String,
    val lng: String,
    val token: String = BaseApplication.userToken()
)